<div class="t-advert">
    <div class="t-tag t-sign"><h3>签到领积分</h3></div>
    <div class="t-tag t-packages"><h3>套餐更优惠</h3></div>
    <div class="t-tag t-fullCut"><h3>折上再满减</h3></div>
    <div class="t-close"></div>
</div>
<div class="t-advert-small"></div>
<script>
    $(function () {
        var $advert = $(".t-advert"),
            $close = $advert.find(".t-close"),
            $adSmall = $(".t-advert-small");
        /*点击关闭按钮动画*/
        $close.click(function () {
           $advert.animate({
               width: 0
           },200);
           $(this).siblings().css({
               opacity: 0
           });
           $adSmall.delay(200).animate({
               left: 0
           },200);
        });
        /*点击小图标动画*/
        $adSmall.click(function () {
            $(this).animate({
                left: "-106px"
            },200);
            $advert.delay(200).animate({
                width: "100%"
            },200);
            $close.siblings().delay(200).animate({
                opacity: 1
            });
        });
    })
</script>